<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/10/2
 * Time: 15:15
 */

namespace App\CronTask;

use EasySwoole\EasySwoole\Crontab\AbstractCronTask;
use App\Enums\UrlEnums;
use App\Library\Auth;
use App\Utility\Pool\MysqlObject;
use App\Utility\Pool\MysqlPool;
use EasySwoole\HttpClient\HttpClient;

class CsgomatchedStatCron extends AbstractCronTask
{
    public static function getRule(): string
    {
        // TODO: Implement getRule() method.
        //return '@daily';
        return '*/1 * * * *';
    }
    public static function getTaskName(): string
    {
        // TODO: Implement getTaskName() method.
        return 'CsgoBattle';
    }
    static function run(\swoole_server $server, int $taskId, int $fromWorkerId, $flags = null)
    {
        MysqlPool::invoke(function (MysqlObject $db){
            
        });
    }
}